package com.chen.core.enums;

import com.chen.core.constant.ResponseConstant;

/**
 * 错误枚举类
 *
 * @author chenguangde
 * @version 1.0
 * @Description
 * @createTime 2021年05月11日 20:39:00
 */
public enum ResponseEnum {

    /**
     * 成功响应类型
     */
    SUCCESS(ResponseConstant.SUCCESS_RESP_CODE, "", "成功", ""),
    /**
     * 失败响应类型
     */
    FAIL(ResponseConstant.FAILED_RESP_CODE, "", "失败", "");

    /**
     * 响应码
     */
    private String responseCode;

    /**
     * 错误码
     */
    private String errorCode;

    /**
     * 详情
     */
    private String message;

    /**
     * 国际化key
     */
    private String localKey;

    ResponseEnum(String responseCode, String errorCode, String message, String localKey) {
        this.responseCode = responseCode;
        this.errorCode = errorCode;
        this.message = message;
        this.localKey = localKey;
    }

    public String getResponseCode() {
        return responseCode;
    }

    public void setResponseCode(String responseCode) {
        this.responseCode = responseCode;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getLocalKey() {
        return localKey;
    }

    public void setLocalKey(String localKey) {
        this.localKey = localKey;
    }
}
